#include "pch.h"
#include "Image.h"
namespace mini
{
	namespace ui
	{
		CImage::CImage()
		{
			mWndType = ui_image;
		}

		CImage::~CImage()
		{
			SafeRelease(mpTexture);
		}

		void CImage::setTexture(CTexture* pTexture)
		{
			if (mpTexture != pTexture)
			{
				SafeRelease(mpTexture);
				mpTexture = pTexture;
				mpTexture->AddRef();
			}
		}

	}
}

